//
//  NoteCell.m
//  MyLearnJob
//
//  Created by qianfeng on 15-6-29.
//  Copyright (c) 2015年 朱共营. All rights reserved.
//

#import "NoteCell.h"
#import "UIImageView+WebCache.h"
@implementation NoteCell

- (void)awakeFromNib {
    // Initialization code
}
- (void)showDataWithModel:(NoteModel *)model{
    [self.picImageView sd_setImageWithURL:[NSURL URLWithString:model.pic] ];
    NSLog(@"%@",model.pic);
    self.nicknameLable.text=model.nickname;
    self.deseLable.text=model.desc;
    self.praiseLable.text=[NSString stringWithFormat:@"%ld赞",model.praise_num.integerValue];
    self.collect_numLable.text=[NSString stringWithFormat:@"%ld采集",model.collect_num.integerValue];
    self.last_dateLable.text=[NSString stringWithFormat:@"%ld",model.last_date.integerValue];
    self.picImageView.layer.masksToBounds=YES;
    self.picImageView.layer.cornerRadius=37;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
